import request from "@/utils/request";

// 查询【请填写功能名称】列表
export function listPq(query) {
  return request({
    url: "/system/pq/list",
    method: "get",
    params: query,
  });
}

export function listPqpmSchedule(query) {
  return request({
    url: "/system/pq/pmSchedule",
    method: "get",
    params: query,
  });
}

export function listPqtlSchedule(query) {
  return request({
    url: "/system/pq/tlSchedule",
    method: "get",
    params: query,
  });
}

// 查询【请填写功能名称】详细
export function getPq(scheduleId) {
  return request({
    url: "/system/pq/" + scheduleId,
    method: "get",
  });
}

// 新增【请填写功能名称】
export function addPq(data) {
  return request({
    url: "/system/pq",
    method: "post",
    data: data,
  });
}

export function pmScheduleAdd(data) {
  return request({
    url: "/system/pq/pmScheduleAdd",
    method: "post",
    data: data,
  });
}

export function tlScheduleAdd(data) {
  return request({
    url: "/system/pq/tlScheduleAdd",
    method: "post",
    data: data,
  });
}

// 修改【请填写功能名称】
export function updatePq(data) {
  return request({
    url: "/system/pq",
    method: "put",
    data: data,
  });
}

// 删除【请填写功能名称】
export function delPq(scheduleId) {
  return request({
    url: "/system/pq/" + scheduleId,
    method: "delete",
  });
}
